package com.mspbots.core.tsheets;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mspbots.core.AbstractBaseController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Callable;

/**
 * com.mspbots.core.controller.SheetsUsercontroller
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/26
 */
@RestController
@RequestMapping(path = "sheet-users")
public class SheetsUserController extends AbstractBaseController<SheetsUser, SheetsUserService> {

    @GetMapping(path = "info")
    public Callable selectOne(SheetsUser t) {
        return () -> service.getOne(new QueryWrapper<>(t));
    }
}
